package Data_Structure.List.MyList;

/**
 * @className: ListNode2
 * @author: 芃
 * @description: 双向链表节点
 * @date: 2023/8/22 18:46
 */
public class ListNode2 {
    public int val;
    public ListNode2 prev;
    public ListNode2 next;


    public ListNode2(int val) {
        this.val = val;
    }

    public ListNode2() {
    }

    @Override
    public String toString() {
        return "ListNode2{" +
                "val=" + val +
                ", next=" + next +
                ", prev=" + prev +
                '}';
    }
}
